package org.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "收藏表")
@TableName(value = "blog_user_collect")
public class BlogUserCollect extends BaseColumn {

    @ApiModelProperty(value = "用户收藏表主键")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "用户id")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "文章id")
    @TableField(value = "essay_id")
    private String essayId;

    @ApiModelProperty(value = "父收藏夹id")
    @TableField(value = "pid")
    private String pid;

    @ApiModelProperty(value = "收藏夹名称")
    @TableField(value = "collect_name")
    private String collectName;
}

